package com.zjitc;

import com.zjitc.obj.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by lenovo on 2018/3/6.
 */
public class App1 {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("main-config.xml");
        User u1=context.getBean(User.class);
        System.out.println(u1);
    }
}
